const express = require('express')

const PORT = 9000

const app = express()

app.set('views', __dirname + '/views')
app.set('view engine', 'js')
const options = {
  beautify: process.env.NODE_ENV === 'development'
}
app.engine('js', require('express-react-views').createEngine(options))

app.get('/', require('./routes').index)

app.listen(PORT, () => {
  console.log(`Listening on ${PORT}`)
})